package org.jasper.impl.base;

import org.jasper.impl.project.ProjectClassLoader;

/**
 * Created by OP038074 on 2018/8/3.
 */
public class RuleBaseConfiguration {

    private boolean mbeansEnabled;

    private transient ClassLoader classLoader;
    private boolean classLoaderCacheEnabled;

    public boolean isMBeansEnabled() {
        return this.mbeansEnabled;
    }

    public void setClassLoader(ClassLoader classLoader) {
        this.classLoader = ProjectClassLoader.getClassLoader(classLoader,
                getClass(),
                isClassLoaderCacheEnabled());
    }

    public boolean isClassLoaderCacheEnabled() {
        return this.classLoaderCacheEnabled;
    }
}
